﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="teacher_search_update_delete.aspx.cs" Inherits="teacher_search_update_delete" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>查看/更新/删除教师基本信息</title>
    <style type="text/css">
        .auto-style1 {
            font-size: x-large;
        }
        .auto-style2 {
            text-align: center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div class="auto-style2">
            <span class="auto-style1"><strong>
            <br />
            查看/更新/删除教师基本信息</strong></span><br />
            <br />
            <br />
        </div>
        <center>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Tno" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Tno" HeaderText="教师号" ReadOnly="True" SortExpression="Tno" />
                <asp:BoundField DataField="Tname" HeaderText="教师名" SortExpression="Tname" />
                <asp:BoundField DataField="dept" HeaderText="学院" SortExpression="dept" />
                <asp:BoundField DataField="course1" HeaderText="课程1" SortExpression="course1" />
                <asp:BoundField DataField="course2" HeaderText="课程2" SortExpression="course2" />
                <asp:BoundField DataField="course3" HeaderText="课程3" SortExpression="course3" />
                <asp:BoundField DataField="course4" HeaderText="课程4" SortExpression="course4" />
                <asp:HyperLinkField DataNavigateUrlFields="Tno,Tname,course1,course2,course3,course4,dept" DataNavigateUrlFormatString="update_teacher.aspx?Tno={0}&amp;Tname={1}&amp;course1={2}&amp;course2={3}&amp;course3={4}&amp;course4={5}&amp;dept={6}" HeaderText="更新" Text="更新" />
                <asp:HyperLinkField DataNavigateUrlFields="Tno,Tname" DataNavigateUrlFormatString="delete_teacher.aspx?Tno={0}&amp;Tname={1}" HeaderText="删除" Text="删除" />
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
            </center>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XSXKConnectionString4 %>" SelectCommand="SELECT [Tno], [Tname], [course1], [course2], [course3], [dept], [course4] FROM [Teacher]"></asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
